//
//  ZlineMassgeModel.m
//  YZZX
//
//  Created by Easaa on 15/5/11.
//  Copyright (c) 2015年 Easaa. All rights reserved.
//

#import "ZlineMassgeModel.h"

@implementation ZlineMassgeModel



- (id)initWithDataDic:(NSDictionary *)dic
{
    self=[super init];
    if (self)
    {
        
        self.Subtitle        =[dic objectForKey:@"Subtitle"];
        self.Author            =[dic objectForKey:@"Author"];
        self.Image              =[dic objectForKey:@"Image"];
        self.Title              =[dic objectForKey:@"Title"];
        self.Summary             =[dic objectForKey:@"Summary"];
    
        //时间转换
        NSDateFormatter *dateformatter = [[NSDateFormatter alloc] init];
        [dateformatter setDateFormat:@"yyyy-MM-dd HH:mm:ss"];
        NSDate *date = [dateformatter dateFromString:[dic objectForKey:@"ReleaseDate"]];
        [dateformatter setDateFormat:@"yyyy-MM-dd"];
        NSString *strtime = [dateformatter stringFromDate:date];
        
        self.ReleaseDate        =strtime;
        self.Source              =[dic objectForKey:@"Source"];
        self.id_massge          =[[dic objectForKey:@"id"] stringValue];
        
    }
    return self;
    
}



@end
